@extends('manager._layouts.default')
 
@section('main')
 
    <h2>Create news item</h2>
 
    {{ Form::open(array('route' => 'manager.news.store')) }}
        <div class="row">
            <div class="row col-lg-12">
                <div class="form-group col-lg-3">
                    <label for="title">News Title</label>
                    <input type="text" id="title" name="title" value="" class="newnewsitem form-control">
                </div>
	            <div class="form-group col-lg-3">
		            <label for="slug">Slug</label>
		            <i class="fa fa-fw fa-question-circle help" data-toggle="popover" data-placement="right" data-trigger="hover" data-content="This is the friendly URL of the news item" data-container="body"></i>
		            <input type="text" id="slug" name="slug" value="" class="form-control">
	            </div>
	            <div class="form-group col-lg-3">
		            <label for="title">News Date</label>
		            <div class='input-group'>
			            <input type="text" id="date" name="date" value="" class="form-control datepicker">
	                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
		            </div>
                </div>
            </div> 
        </div>

        <ul class="nav nav-tabs">
            <li class="active"><a href="#content" data-toggle="tab">Content</a></li>
            <li><a href="#images" data-toggle="tab">Images</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="content">
                <label for="news-body">Body</label>
                <textarea name="body" id="news-body-editor" class="form-control"></textarea>
            </div>
            <div class="tab-pane" id="images">
                <p>Please save the news item before uploading any images</p>
            </div>
        </div>

        
        <div class="row">
            <div class="col-lg-12">
                <button type="submit" class="btn btn-primary btn-large">Save</button>
                <a href="{{ URL::route('manager.news.index') }}" class="btn btn-default btn-large">Cancel</a>
            </div>        
            
        </div>
 
    {{ Form::close() }}
 
@stop